﻿using Bentley.CifNET.Formatting;
using Bentley.DgnPlatformNET;
using Bentley.MstnPlatformNET;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CheccCoverplateCulvertAssemble.Tools
{
    internal class GeneralBank
    {
        public static DgnFile ActiveDgnFile => Session.Instance.GetActiveDgnFile();
        public static DgnModel ActiveDgnModel => Session.Instance.GetActiveDgnModel();
        public static DgnModel Default3DModel => Session.Instance.GetActiveDgnFile().FindLoadedModelById(Session.Instance.GetActiveDgnFile().FindModelIdByName("Default-3D"));
        public static double UnitsToMeters => FormatSettingsConstants.GetMasterUnitsToMeters();
        public static double UorToMeters => Session.Instance.GetActiveDgnModel().GetModelInfo().UorPerMaster;
    }
}
